<?php

namespace App\Admin\Actions\Extensions;

use App\Admin\Forms\Collecter\ImportCollectJsonForm;
use Dcat\Admin\Grid\Tools\AbstractTool;
use Dcat\Admin\Widgets\Modal;

class ImportCollectJsonButton extends AbstractTool
{
    protected $style = 'btn btn-primary';

    public function html()
    {
        return Modal::make()
            ->lg()
            ->title($title = '导入文件')
            ->body(ImportCollectJsonForm::make())
            ->button("<button class='btn btn-primary'><i class=\"fa fa-fw fa-paw\"></i> &nbsp;{$title}</button> &nbsp;");
    }
}
